<include file="Public:top" /> 
<style>
input{margin-bottom:10p;}
tr{ height:38px;}
</style>
<script>
var editor;
</script>
<div id="main" class="" >
<div class="content">
<div class="title">{$vo.jgmc}托管机构信息管理  [ <a href="__URL__">返回列表</a> ]</div>
<form method="post" id="form2" name="form2">
  <table width="95%">
    <tr>
      <td colspan="2" rowspan="2" valign="top" class="tRight"><table width="100%" border="0" cellspacing="0" cellpadding="2">
        <tr>
          <td class="tRight">机构名称：</td>
          <td align="left"><input type="text" name="jgmc" id="jgmc" class="medium bLeft" value="{$vo.jgmc}" /></td>
        </tr>
        <tr>
          <td class="tRight">地址：</td>
          <td align="left"><input type="text" name="dz" id="dz" class="medium bLeft" value="{$vo.dz}" /></td>
        </tr>
        <tr>
          <td class="tRight">建筑面积：</td>
          <td align="left"><input type="number" name="jzmj" id="jzmj" class="medium bLeft" value="{$vo.jzmj}" /></td>
        </tr>
        <tr>
          <td class="tRight">物业来源：</td>
          <td align="left"><select class="medium bLeft"  name="wyly" title="物业来源">
            <option <eq name="vo.wyly" value="" >selected</eq> value=""></option>
        	<option <eq name="vo.wyly" value="自主" >selected</eq> value="自主">自主</option>
            <option <eq name="vo.wyly" value="租赁" >selected</eq> value="租赁">租赁</option>
          </select></td>
        </tr>
        <tr>
          <td class="tRight">消防：</td>
          <td align="left"><select class="medium bLeft"  name="xf" title="消防">
            <option <eq name="vo.xf" value="" >selected</eq> value=""></option>
        	<option <eq name="vo.xf" value="验收" >selected</eq> value="验收">验收</option>
            <option <eq name="vo.xf" value="备案" >selected</eq> value="备案">备案</option>
          </select></td>
        </tr>
        <tr>
          <td class="tRight">卫生：</td>
          <td align="left">{$vo.ws|getAqInfo='ws',1}</td>
        </tr>
        <tr>
          <td class="tRight">工商：</td>
          <td align="left">{$vo.gs|getAqInfo='gs',1}</td>
        </tr>
        <!--<tr>
	<td class="tRight">状态：</td>
	<td class="tLeft"><SELECT class="small bLeft"  name="status">
	<option value="1">启用</option>
	<option value="0">禁用</option>
	</SELECT></td>
	<td class="tLeft">&nbsp;</td>
</tr>-->
        <tr>
          <td></td>
          <td class="tLeft"><input type="hidden" name="id" value="{$vo.id}" >
            <input type="button" value="保 存" onclick="save()" class="small submit" />
            <!--<input type="reset" class="submit  small" value="清 空" >--></td>
          <td class="center">&nbsp;</td>
        </tr>
      </table></td>
      <td rowspan="2">&nbsp;</td>
      <td>托管机构详细信息[双击正文进入编辑状态]：</td>
    </tr>
    <tr>
      <td valign="top" id="dlg_remarks"><div id="div_remarks" style="height:300px; width:570px;">{$vo.remarks}</div></td>
    </tr>
  </table>
</form>
</div>
</div>
<style>
.dlg{ height:520px; width:930px; top:2px; position:static; float:left;}
.dlg1{ height:500px; width:910px; float:left;}
</style>
<div class="hide" style="height:100%" id="hideDiv">	
    <div id="tempDiv"></div>
</div>
<include file="Public:footer" />
<script>
jQuery(function(){
	//取得项目的相关信息，作ajax处理
	ff='remarks';
	if($('#div_'+ff).html().length<5){
		editor = showEditor(ff,0,300);
	}else{
		jQuery('#dlg_'+ff).one('dblclick',function(){
			editor = showEditor(ff,0,300);
		})
	}
})//jquery
		
function save(){
	if(editor)$('#remarks').val(editor.html());
    var inputs = $("#form2 :input").validator({ lang: 'zh',position: 'right left',offset: [-12, 0],message: '<div><em/></div>' });//检测表单
    if(inputs.data("validator").checkValidity()){
		var queryString = $('#form2').serialize();
		$.post('__URL__/update/',queryString,function(data){
			$.messager.show({
				title:'提示信息',msg:data.info,timeout:2000,showType:'slide'
			});
		},'json')	
	}	
}
</script>